import requests

from com.yh.oa.utils.utils import oaHost


class Job:

    def queryJobList(self,pagNum=1,pageSize=10,postCode="",postName="",status="",token=""):

        params = {
            "pagNum": pagNum,
            "pageSize": pageSize,
            "postCode": postCode,
            "postName": postName,
            "status": status
        }

        resp = requests.get(oaHost+"/system/user/list",params=params,headers=token)
        return resp
